<%@ page contentType="text/html;charset=utf-8" 
	import="com.zh.UserBean,org.springframework.web.context.*,org.springframework.web.context.support.*,com.zh.Util,java.util.*,com.zh.User,com.zh.Payment"
%>
<html>
  <head>
    <title>修改缴费信息</title>
     <script language="JavaScript" src="script/com.js"></script>
     <script language="JavaScript">
       function check(){
       	 
       	 document.all.mf.submit();
       }
     </script>
      <style>
      table{
	         border-collapse:collapse;
	       }
	       table,th,td {
	       
	       border:1px solid black;
	       }
	       .mima {
	       width:100%;
	       height:40px;
	       background-color:#ADD8E6;
	       }
	       .zi {
	       font-size:20px;
	       position:relative;
	       left:45%;
	       margin-left:-30px;
	       line-height:40px;
	       }
	</style>
  </head>
  <body >
 	<jsp:useBean id="userBean" class="com.zh.UserBean" scope="session"/>
	<div class="mima"><font class="zi">修改缴费信息</font></div>
	<% 
		Payment p = (Payment)request.getAttribute("object");
		WebApplicationContext wac=
		   WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
		Util db = (Util)wac.getBean("Util");
		String userId=p.getUserId();
		String paymentId=p.getPaymentId();
	    User user=(User)db.getObject("user",userId);
	 %>
	<form action="SuperServlet" method="post" id="mf">
	<table width="80%" border="1" style="margin-left:150px;margin-top:15px">
	  <tr >
	    <td align="center">业主名:</td>
	    <td><%= user.getUsername() %></td>
	  </tr>
	  
	  <tr >
	    <td align="center">电话:</td>
	    <td><%= user.getPhonenumber() %></td>
	  </tr>
	  <tr >
	    <td align="center">停车费:</td>
	    <td><input name="stopcarmoney" id="stopcarmoney" value="<%= p.getStopcarmoney() %>"/></td>
	  </tr>
	  
	  <tr >
	  	<td align="center">水费:</td>
	  	<td><input name="watermoney" id="watermoney" 
	  		value="<%= p.getWatermoney() %>"/></td>
	  </tr>	 
	  <tr >
	  	<td align="center">电费:</td>
	  	<td><input name="elementmoney" id="elementmoney" 
	  		value="<%= p.getElementmoney() %>"/></td>
	  </tr>
	  <tr >
	  	<td align="center">煤气费:</td>
	  	<td><input name="gasmoney" id="gasmoney" 
	  		value="<%= p.getGasmoney() %>"/></td>
	  </tr>	
	  <tr >
	  	<td align="center">服务费:</td>
	  	<td><input name="servicemanagemoney" id="servicemanagemoney" 
	  		value="<%= p.getServicemoney() %>"/></td>
	  </tr>		 
	  <tr >
	  	<td align="center">缴费状态:</td>
	  	<td>
	  		<select name="states">     	  
      	    	<option value="未缴费">未缴费</option>
      	    	<option value="已缴费">已缴费</option>     	   
      	  </select>
	  	</td>
	  </tr>
	  <tr>
		   <td  colspan="2" height="30px">
		   <div  style="position:relative;left:35%;">
		   <input type="button" value="提交" id="xg" onclick="JavaScript:check()" style="cursor:hand"/>
		   <input type="button" value="重置" id="cz" onclick="JavaScript:document.all.ss.reset()"  style="cursor:hand">
		   </div>
		   </td>
		 </tr> 
	</table>
	<input type="hidden" name="action" value="mdpayment"/>
	<input type="hidden" name="paymentId" value="<%= p.getPaymentId() %>"/>
	<input type="hidden" name="userId" value="<%= p.getUserId() %>"/>
	<input type="hidden" name="stopcarmoney" value="<%= p.getStopcarmoney() %>"/>
	<input type="hidden" name="watermoney" value="<%= p.getWatermoney() %>"/>
	<input type="hidden" name="elementmoney" value="<%= p.getElementmoney() %>"/>
	<input type="hidden" name="gasmoney" value="<%= p.getGasmoney() %>"/>
	<input type="hidden" name="servicemanagemoney" value="<%= p.getServicemoney() %>"/>
	<input type="hidden" name="starttime" value="<%= p.getStarttime() %>"/>
	<input type="hidden" name="endtime" value="<%= p.getEndtime() %>"/>
	<input type="hidden" name="states" value="<%= p.getStates() %>"/>
	
	
	</form>
  </body>
</html>